#define _CRT_SECURE_NO_WARNINGS

#include "Queue.h"

void test1()
{
	Queue q;
	QInit(&q);

	QPush(&q, 1);
	QPush(&q, 2);
	QPush(&q, 3);
	printf("size:%d\n", QSize(&q));
	while (!QEmpty(&q))
	{
		printf("%d ", QFront(&q));
		QPop(&q);
	}
	QPush(&q, 4);

	while (!QEmpty(&q))
	{
		printf("%d ", QFront(&q));
		QPop(&q);
	}
	QDestroy(&q);
}

int main()
{
	test1();
	return 0;
}